/* 全局基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", "Microsoft YaHei", sans-serif;
}
body {
  color: #333;
  background-color: #f9f9f9;
  line-height: 1.6;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  cursor: pointer;
  border: none;
  outline: none;
}
.btn {
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-primary {
  background-color: #FF6B00;
  color: white;
}
.btn-primary:hover {
  background-color: #e05a00;
}
.btn-outline {
  background-color: white;
  color: #FF6B00;
  border: 1px solid #FF6B00;
}
.btn-outline:hover {
  background-color: #fff5f0;
}
.section {
  padding: 60px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
  color: #222;
}
.section-desc {
  text-align: center;
  margin-bottom: 50px;
  color: #666;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* 导航栏样式 */
.header {
  background-color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
.logo {
  font-size: 24px;
  font-weight: bold;
  color: #FF6B00;
}
.logo span {
  color: #333;
}
.nav-menu {
  display: flex;
  gap: 30px;
}
.nav-menu a {
  color: #666;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-menu a:hover, .nav-menu a.active {
  color: #FF6B00;
}
.nav-btn {
  display: flex;
  gap: 15px;
  align-items: center;
}
.mobile-menu-btn {
  display: none;
  font-size: 24px;
  color: #333;
}
.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  font-weight: 500;
}
.user-info i {
  font-size: 18px;
}

/* 英雄区域样式 */
.hero {
  background: linear-gradient(135deg, #FF6B00 0%, #FF8A33 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}
.hero-title {
  font-size: 42px;
  margin-bottom: 20px;
  line-height: 1.3;
}
.hero-desc {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.search-box {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.search-input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  outline: none;
  border: 1px solid #eee;
}
.search-select {
  padding: 12px 15px;
  border: 1px solid #eee;
  border-radius: 4px;
  font-size: 16px;
  color: #666;
  outline: none;
}
.search-btn {
  padding: 0 25px;
}

/* 服务分类样式 */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 25px;
}
.service-item {
  background-color: white;
  padding: 30px 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.service-icon {
  font-size: 32px;
  color: #FF6B00;
  margin-bottom: 15px;
}
.service-name {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 16px;
}
.service-count {
  font-size: 14px;
  color: #999;
}

/* 服务展示页Banner */
.service-banner {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://picsum.photos/id/237/1200/300') center/cover no-repeat;
  padding: 60px 0;
  color: white;
  text-align: center;
}
.service-banner-title {
  font-size: 32px;
  margin-bottom: 15px;
}
.service-banner-desc {
  font-size: 16px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* 平台分类样式 */
.platform-categories {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 15px 10px;
  margin-bottom: 30px;
}
.platform-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 10px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}
.platform-category:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 紧凑样式的服务分类 */
.platform-categories.compact {
  grid-template-columns: repeat(10, 1fr);
  gap: 10px 5px;
}
.platform-category.compact {
  flex-direction: row;
  align-items: center;
  padding: 8px 10px;
  justify-content: center;
}
.service-icon.compact {
  font-size: 16px;
  margin-bottom: 0;
  margin-right: 6px;
}
.service-name.compact {
  font-size: 14px;
  margin-bottom: 0;
  white-space: nowrap;
}

/* 更多按钮容器 */
.more-btn-container {
  text-align: center;
  margin-top: 30px;
}

/* 重点推荐样式 */
.highlight-recommendations {
  padding: 60px 0;
  background-color: white;
}
.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.recommendation-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.recommendation-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.recommendation-img-container {
  position: relative;
}
.recommendation-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.hot-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #ff4d4f;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.recommendation-info {
  padding: 15px;
}
.recommendation-name {
  font-weight: 600;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recommendation-price {
  color: #ff4d4f;
  font-weight: 600;
}

/* 筛选按钮样式 */
.filter-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.filter-btn {
  padding: 8px 16px;
  background-color: #f1f1f1;
  border-radius: 20px;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.filter-btn.active {
  background-color: #FF6B00;
  color: white;
}

.filter-btn:hover:not(.active) {
  background-color: #e0e0e0;
}

/* 为筛选功能添加的样式 */
.recommendation-item {
  display: block;
}

.recommendation-item.hidden {
  display: none;
}

/* 产品详情页面样式 */
.product-detail {
  padding: 60px 0;
  background-color: white;
}
.product-info {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}
.product-left {
  flex: 0 0 220px;
}
.product-icon {
  width: 100%;
  border-radius: 12px;
}
.product-right {
  flex: 1;
}
.product-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #222;
}
.product-price {
  font-size: 20px;
  margin-bottom: 15px;
  color: #ff4d4f;
}
.price-value {
  font-weight: bold;
}
.product-meta {
  margin-bottom: 25px;
  color: #666;
  line-height: 1.8;
}
.product-form .form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}
.form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  outline: none;
}
.form-input:focus {
  border-color: #FF6B00;
}
.quantity-group {
  display: flex;
  align-items: center;
  gap: 15px;
}
.quantity-controls {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.quantity-btn {
  padding: 8px 15px;
  background-color: #f5f5f5;
  cursor: pointer;
  border: none;
  outline: none;
}
.quantity-btn.minus {
  border-right: 1px solid #ddd;
}
.quantity-btn.plus {
  border-left: 1px solid #ddd;
}
.quantity-input {
  width: 80px;
  text-align: center;
  border: none;
  outline: none;
  font-size: 16px;
}
.quantity-note {
  color: #999;
  font-size: 14px;
}
.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}
.form-actions .btn {
  padding: 10px 20px;
}

/* 选项卡样式 */
.product-tabs {
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
}
.tab-nav {
  display: flex;
  border-bottom: 1px solid #ddd;
}
.tab-btn {
  padding: 15px 20px;
  background-color: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.tab-btn.active {
  color: #FF6B00;
  border-bottom: 2px solid #FF6B00;
}
.tab-content {
  padding: 20px;
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}
.tab-title {
  font-size: 20px;
  margin-bottom: 15px;
  color: #222;
}
.tab-desc {
  margin-bottom: 10px;
  line-height: 1.8;
}
.feature-list {
  list-style: none;
  margin-left: 15px;
}
.feature-list li {
  margin-bottom: 8px;
  position: relative;
}
.feature-list li::before {
  content: "•";
  color: #FF6B00;
  position: absolute;
  left: -15px;
}
.empty-history {
  text-align: center;
  padding: 40px 0;
  color: #999;
}

/* 会员中心样式 */
.member-center {
  padding: 40px 0;
  background-color: #f9f9f9;
  min-height: calc(100vh - 140px);
}
.member-wrapper {
  display: flex;
  gap: 30px;
}
.member-sidebar {
  width: 250px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  flex-shrink: 0;
}
.sidebar-title {
  padding: 18px 20px;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid #eee;
  color: #222;
}
.sidebar-menu {
  list-style: none;
}
.sidebar-menu li {
  border-bottom: 1px solid #f5f5f5;
}
.sidebar-menu a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: #666;
  transition: all 0.3s ease;
}
.sidebar-menu a:hover, .sidebar-menu a.active {
  color: #FF6B00;
  background-color: #fff5f0;
}
.sidebar-menu .parent-link {
  justify-content: space-between;
}
.sidebar-menu .parent-link i:first-child {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}
.submenu {
  display: none;
  background-color: #fafafa;
}
.submenu.active {
  display: block;
}
.submenu a {
  padding-left: 50px;
}
.member-content {
  flex: 1;
}
.content-section {
  display: none;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 25px;
}
.content-section.active {
  display: block;
}
.content-title {
  font-size: 22px;
  color: #222;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}
.section-header {
  margin-bottom: 25px;
}

/* 订单列表样式 */
.order-filters {
  margin-top: 15px;
}
.order-search {
  max-width: 500px;
}
.order-list {
  margin-bottom: 30px;
}
.order-item {
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}
.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #fafafa;
  border-bottom: 1px solid #eee;
}
.order-info {
  display: flex;
  gap: 20px;
  color: #666;
}
.order-status {
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}
.order-status.pending {
  background-color: #fff8e6;
  color: #ff9800;
}
.order-status.completed {
  background-color: #e8f5e9;
  color: #4caf50;
}
.order-status.cancelled {
  background-color: #ffebee;
  color: #f44336;
}
.order-body {
  display: flex;
  padding: 20px;
  gap: 20px;
}
.order-product {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 15px;
}
.product-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}
.product-params {
  color: #666;
  font-size: 14px;
  margin-top: 5px;
}
.order-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
}
.order-price {
  font-size: 16px;
  font-weight: 600;
  color: #ff4d4f;
}
.order-actions {
  display: flex;
  gap: 10px;
}
.view-details {
  padding: 6px 12px;
  font-size: 14px;
}
.cancel-order, .reorder {
  padding: 6px 12px;
  font-size: 14px;
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}
.pagination .btn {
  padding: 6px 12px;
}
.current-page {
  background-color: #FF6B00;
  color: white;
}

/* 账户充值样式 */
.recharge-container {
  max-width: 600px;
}
.balance-info {
  margin-bottom: 30px;
  padding: 15px 20px;
  background-color: #fff8e6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.balance-label {
  color: #666;
}
.balance-amount {
  font-size: 22px;
  font-weight: 600;
  color: #ff9800;
}
.amount-options {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}
.amount-btn {
  padding: 10px 20px;
  background-color: #f5f5f5;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.amount-btn:hover, .amount-btn.active {
  background-color: #FF6B00;
  color: white;
}
.custom-amount {
  max-width: 200px;
}
.payment-methods {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}
.payment-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.payment-option input {
  margin-right: 5px;
}
.payment-option:hover, .payment-option input:checked + .payment-icon + .payment-name {
  border-color: #FF6B00;
  background-color: #fff5f0;
}
.payment-icon {
  font-size: 18px;
}
.recharge-btn {
  margin-top: 20px;
}

/* 消费记录样式 */
.consumption-filters {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 15px;
}
.consumption-search {
  max-width: 300px;
}
.filter-select {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  color: #666;
  outline: none;
}
.consumption-list {
  margin-bottom: 30px;
}
.consumption-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}
.consumption-info {
  flex: 1;
}
.consumption-type {
  font-weight: 600;
  margin-bottom: 5px;
}
.consumption-date {
  font-size: 14px;
  color: #999;
  margin-bottom: 3px;
}
.consumption-desc {
  font-size: 14px;
  color: #666;
}
.consumption-amount {
  font-weight: 600;
  font-size: 16px;
}
.inflow {
  color: #4caf50;
}
.outflow {
  color: #f44336;
}

/* 我的资料样式 */
.profile-form {
  max-width: 600px;
}
.gender-options {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}
.gender-option {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.save-profile {
  margin-top: 20px;
}

/* 页脚样式 */
.footer {
  background-color: #222;
  color: #999;
  padding: 60px 0 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: white;
  margin-bottom: 20px;
}
.footer-logo span {
  color: #FF6B00;
}
.footer-desc {
  margin-bottom: 20px;
  line-height: 1.8;
}
.footer-title {
  font-size: 18px;
  color: white;
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-list {
  list-style: none;
}
.footer-list li {
  margin-bottom: 12px;
}
.footer-list a {
  transition: color 0.3s ease;
}
.footer-list a:hover {
  color: #FF6B00;
}
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #333;
  font-size: 14px;
}

/* 登录/注册模态框 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal.show {
  display: flex;
}
.modal-content {
  background-color: white;
  border-radius: 8px;
  width: 90%;
  max-width: 450px;
  padding: 30px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 20px;
  color: #999;
  cursor: pointer;
}
.modal-title {
  text-align: center;
  font-size: 22px;
  margin-bottom: 25px;
  color: #222;
}
.form-group {
  margin-bottom: 20px;
}
.form-code {
  display: flex;
  gap: 10px;
}
.form-code .form-input {
  flex: 1;
}
.form-code-btn {
  white-space: nowrap;
  padding: 0 15px;
  background-color: #f5f5f5;
  color: #666;
}
.form-agree {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  font-size: 14px;
  color: #666;
}
.form-agree input {
  margin-right: 8px;
}
.form-link {
  color: #FF6B00;
  cursor: pointer;
}
.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #666;
}

/* 响应式适配 */
@media (max-width: 1200px) {
  .recommendation-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .platform-categories {
    grid-template-columns: repeat(8, 1fr);
  }
  .platform-categories.compact {
    grid-template-columns: repeat(8, 1fr);
  }
}

@media (max-width: 992px) {
  .recommendation-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .platform-categories {
    grid-template-columns: repeat(6, 1fr);
  }
  .platform-categories.compact {
    grid-template-columns: repeat(6, 1fr);
  }
  .order-body {
    flex-direction: column;
    align-items: flex-start;
  }
  .order-summary {
    margin-top: 15px;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .nav-menu, .nav-btn .btn {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-title {
    font-size: 32px;
  }
  .search-box {
    flex-direction: column;
  }
  .service-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .recommendation-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .platform-categories {
    grid-template-columns: repeat(4, 1fr);
  }
  .platform-categories.compact {
    grid-template-columns: repeat(4, 1fr);
  }
  .product-info {
    flex-direction: column;
  }
  .product-left {
    flex: 0 0 auto;
    margin-bottom: 20px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .member-wrapper {
    flex-direction: column;
  }
  .member-sidebar {
    width: 100%;
  }
  .consumption-filters {
    flex-direction: column;
    align-items: flex-start;
  }
  .consumption-search {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 576px) {
  .recommendation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .platform-categories {
    grid-template-columns: repeat(3, 1fr);
  }
  .platform-categories.compact {
    grid-template-columns: repeat(3, 1fr);
  }
  .service-banner-title {
    font-size: 24px;
  }
  .section-title {
    font-size: 24px;
  }
  .order-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .amount-options {
    gap: 10px;
  }
  .amount-btn {
    padding: 8px 12px;
    font-size: 14px;
  }
  .payment-methods {
    flex-direction: column;
    gap: 10px;
  }
  .payment-option {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .recommendation-grid {
    grid-template-columns: 1fr;
  }
  .platform-categories {
    grid-template-columns: repeat(2, 1fr);
  }
  .platform-categories.compact {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-name.compact {
    font-size: 12px;
  }
  .order-actions {
    flex-direction: column;
    width: 100%;
  }
  .order-actions .btn {
    width: 100%;
  }
  .pagination {
    flex-wrap: wrap;
  }
}
    